import { ElTooltip } from 'element-plus'

// 渲染label message
export function renderLabelMessage(label: string, msg: string) {
  return () => (
    <>
      <span>{label}</span>
      <ElTooltip placement="right" raw-content>
        {{
          content: () => <div style="max-width: 350px" v-html={msg}></div>,
          default: () => <i class="i-fa:info-circle left-2px"></i>,
        }}
      </ElTooltip>
    </>
  )
}
